import React from 'react'
import ChatNews from './chatnews'
import './chatcontainer.less'

class ChatContainer extends React.Component{

    constructor(props){
        super(props)
        console.log(props)
    }

    render(){
        const content = this.props.chatcontent
        return(
            <div className="chat-container">
                {
                    content.map(function(item,index) {
                        return <ChatNews id={'chatnews'+index} key={index} content={item}></ChatNews>
                    })
                }
            </div>
        )
    }

    componentDidMount(){

    }

}

export default ChatContainer